package com.jt.provider.server;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ResourceBlockHandler {
    public static String doHandle(BlockException ex){
        log.warn("blocked by sentinel");
        return "blocaked by sentinel";
    }
    public static String doHandle(Integer id,BlockException ex){
        log.warn("blocked by sentinel");
        return "ididididid";
    }
}
